package faceb.server.model;

public class News {

	private String n_id;
	private String n_topic;
	private String n_title;
	private String n_u_id;
	private long n_time;
	private String n_content;
	private int n_viewcount;
	private int n_like;

	public News() {

	}

	public News(String n_id, String n_topic, String n_title, String n_u_id,
			long n_time, String n_content, int n_viewcount, int n_like) {
		super();
		this.n_id = n_id;
		this.n_topic = n_topic;
		this.n_title = n_title;
		this.n_u_id = n_u_id;
		this.n_time = n_time;
		this.n_content = n_content;
		this.n_viewcount = n_viewcount;
		this.n_like = n_like;
	}

	public String getN_id() {
		return n_id;
	}

	public void setN_id(String n_id) {
		this.n_id = n_id;
	}

	public String getN_topic() {
		return n_topic;
	}

	public void setN_topic(String n_topic) {
		this.n_topic = n_topic;
	}

	public String getN_title() {
		return n_title;
	}

	public void setN_title(String n_title) {
		this.n_title = n_title;
	}

	public String getN_u_id() {
		return n_u_id;
	}

	public void setN_u_id(String n_u_id) {
		this.n_u_id = n_u_id;
	}

	public long getN_time() {
		return n_time;
	}

	public void setN_time(long n_time) {
		this.n_time = n_time;
	}

	public String getN_content() {
		return n_content;
	}

	public void setN_content(String n_content) {
		this.n_content = n_content;
	}

	public int getN_viewcount() {
		return n_viewcount;
	}

	public void setN_viewcount(int n_viewcount) {
		this.n_viewcount = n_viewcount;
	}

	public int getN_like() {
		return n_like;
	}

	public void setN_like(int n_like) {
		this.n_like = n_like;
	}

	
	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		String line_separator = System.lineSeparator();
		sb.append("newid:"+n_id);
		sb.append(line_separator);
		sb.append("content:"+n_content);
		return sb.toString();
	}
}
